package com.motiom.gear.roomaction.dao;

import android.arch.persistence.room.Dao;
import android.arch.persistence.room.Insert;
import android.arch.persistence.room.Query;

import com.motiom.gear.roomaction.model.User;

/**
 * Created by joewang on 2018/1/10.
 */

@Dao
public interface UserDao {

    @Insert
    long insertUser(User user);

    @Query("select * from user where name = :name")
    User getUser(String name);
}
